// API 基础配置
export const API_BASE_URL = '/api'

// 用户类型
export const USER_TYPES = {
  STUDENT: 'student',
  TEACHER: 'teacher'
}

// 任务状态
export const TASK_STATUS = {
  PENDING: 'pending',
  PROCESSING: 'processing',
  COMPLETED: 'completed',
  FAILED: 'failed'
}

// 任务类型
export const TASK_TYPES = {
  TITLE: 'title',
  CONTENT: 'content'
}

// 风险等级
export const RISK_LEVELS = {
  LOW: 'low',
  MEDIUM: 'medium',
  HIGH: 'high'
}

// 风险等级标签和颜色
export const RISK_LEVEL_CONFIG = {
  [RISK_LEVELS.LOW]: {
    label: '低风险',
    color: 'success',
    threshold: '< 15%'
  },
  [RISK_LEVELS.MEDIUM]: {
    label: '中风险',
    color: 'warning',
    threshold: '15% - 30%'
  },
  [RISK_LEVELS.HIGH]: {
    label: '高风险',
    color: 'danger',
    threshold: '> 30%'
  }
}

// 文件上传配置
export const FILE_UPLOAD_CONFIG = {
  MAX_SIZE: 30 * 1024 * 1024, // 30MB
  ALLOWED_TYPES: ['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
  ALLOWED_EXTENSIONS: ['.pdf', '.doc', '.docx'],
  PDF_ONLY: {
    MAX_SIZE: 30 * 1024 * 1024, // 30MB
    ALLOWED_TYPES: ['application/pdf'],
    ALLOWED_EXTENSIONS: ['.pdf']
  }
}

// 查重范围选项
export const CHECK_SCOPE_OPTIONS = [
  { value: 'current', label: '本届' },
  { value: 'history', label: '历史' },
  { value: 'current_and_history', label: '本届+历史' }
]

// 敏感度选项
export const SENSITIVITY_OPTIONS = [
  { value: 'low', label: '低' },
  { value: 'medium', label: '中' },
  { value: 'high', label: '高' }
]

// 导出格式选项
export const EXPORT_FORMAT_OPTIONS = [
  { value: 'excel', label: 'Excel' },
  { value: 'csv', label: 'CSV' }
]

// 默认分页配置
export const PAGINATION_CONFIG = {
  PAGE_SIZE: 10,
  PAGE_SIZES: [10, 20, 50, 100]
}

// 本地存储键名
export const STORAGE_KEYS = {
  TOKEN: 'graduation_check_token',
  USER_INFO: 'graduation_check_user_info',
  REMEMBER_ACCOUNT: 'graduation_check_remember_account'
}